package com.mt.repair.service.repairManagement;

import com.mt.common.core.web.base.PageDTO;
import com.mt.common.core.web.base.PageResultDTO;
import com.mt.repair.entity.repairManagement.RepairOrderStatusRecord;

import java.util.List;

public interface RepairOrderStatusRecordService {
    /**
     * 根据分页参数查询维修单状态记录集合
     *
     * @param pageDTO 分页条件
     */
    public PageResultDTO findRepairOrderStatusRecords(PageDTO pageDTO);

    /**
     * 查询全部维修单状态记录集合
     *
     */
    public List<RepairOrderStatusRecord> findAllRepairOrderStatusRecords();

    /**
     * 根据名称查询维修单状态记录集合(只提取ID 和 Name)
     *
     * @param repairOrderStatusRecordName 名称
     */
    public List<RepairOrderStatusRecord> findRepairOrderStatusRecordsWithIdNameByName(String repairOrderStatusRecordName);

    /**
     * 查询所有维修单状态记录集合(只提取ID 和 Name)
     *
     */
    public List<RepairOrderStatusRecord> findAllRepairOrderStatusRecordsWithIdName();

    /**
     * 根据ID查询指定的维修单状态记录(只提取ID 和 Name)
     *
     * @param repairOrderStatusRecordId Id
     */
    public RepairOrderStatusRecord findRepairOrderStatusRecordsWithIdNameById(Long repairOrderStatusRecordId);

    /**
     * 根据ID查询指定的维修单状态记录
     *
     * @param repairOrderStatusRecordId Id
     */
    public RepairOrderStatusRecord findRepairOrderStatusRecord(Long repairOrderStatusRecordId);

    /**
     * 根据ID查询指定的维修单状态记录(包含外键)
     *
     * @param repairOrderStatusRecordId Id
     */
    public RepairOrderStatusRecord findRepairOrderStatusRecordWithForeignName(Long repairOrderStatusRecordId);

    /**
     * 新增维修单状态记录
     *
     * @param repairOrderStatusRecord 实体对象
     */
    public RepairOrderStatusRecord saveRepairOrderStatusRecord(RepairOrderStatusRecord repairOrderStatusRecord);

    /**
     * 更新维修单状态记录
     *
     * @param repairOrderStatusRecord 实体对象
     */
    public RepairOrderStatusRecord updateRepairOrderStatusRecord(RepairOrderStatusRecord repairOrderStatusRecord);

    /**
     * 根据ID删除维修单状态记录
     *
     * @param repairOrderStatusRecordId ID
     */
    public void deleteRepairOrderStatusRecord(Long repairOrderStatusRecordId);
}
